package edu.ynu.se.xiecheng.achitectureclass.demo.controller;

import edu.ynu.se.xiecheng.achitectureclass.common.controller.LogicController;
import edu.ynu.se.xiecheng.achitectureclass.demo.dao.DeviceDao;
import edu.ynu.se.xiecheng.achitectureclass.demo.entity.Device;
import edu.ynu.se.xiecheng.achitectureclass.demo.service.DeviceService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "设备")
@RestController
@RequestMapping("/api/devices")
public class DeviceController extends LogicController<DeviceService, DeviceDao, Device, Long> {

    public DeviceController(@Autowired DeviceService ls) {
        super(ls);
    }
}
